import request from '@/utils/request'

// 外联资料表修改
export function updateInfo(data) {
  return request({
    url: '/operatingCenter/outInfo/updateByPrimaryKeySelective',
    method: 'POST',
    data
  })
}

// 外联资料表添加
export function insertInfo(data) {
  return request({
    url: '/operatingCenter/outInfo/insertSelective',
    method: 'POST',
    data
  })
}

// 外联资料表类型名称查询
export function selectTypeName(params) {
  return request({
    url: '/operatingCenter/outInfo/selectTypeName',
    method: 'POST',
    params
  })
}

// 外联资料表外联单位名称查询
export function selectCompany(params) {
  return request({
    url: '/operatingCenter/outInfo/selectCompany',
    method: 'post',
    params
  })
}

// 外联资料表分页条件查询
export function getInfoList(params) {
  return request({
    url: '/operatingCenter/outInfo/selectPage',
    method: 'POST',
    params
  })
}

// 外联资料表修改查询
export function selectInfo(params) {
  return request({
    url: '/operatingCenter/outInfo/selectByPrimaryKey',
    method: 'POST',
    params
  })
}

// 外联资料表删除
export function deleteInfo(params) {
  return request({
    url: '/operatingCenter/outInfo/deleteByPrimaryKey',
    method: 'POST',
    params
  })
}
